import java.util.ArrayList;


public class Block 
{
	int size;
	boolean horizontal; // false if V, true if H
	ArrayList <Tile> tiles;
	
	int x,y;
	
	public Block(int s,boolean d, int a, int b)
	{
		size = s;
		horizontal = d;
		x = a;
		y = b;
		
		tiles = new ArrayList<Tile>();
		
		if(horizontal)
		{
			this.tiles.add(new Tile(x,y));
			this.tiles.add(new Tile(x,y+1));
		}
		else // vertical
		{
			this.tiles.add(new Tile(x,y));
			this.tiles.add(new Tile(x+1,y));
			
			if(size==3)
			{
				this.tiles.add(new Tile(x+2,y));
			}
		}
	}
}
